<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #sub1{
            width: 400px;
            height: 500px;
            border: 1px red dashed;
        }
        #d1{
            width: 100px;
            height: 100px;
            background-color: aqua;
            position: relative;
            left: 300px;
        }
        #d2{
            width: 100px;
            height: 100px;
            background-color: antiquewhite;

        }
        #sub2{
            width: 500px;
            height: 600px;
            border: 1px red dashed;
            position: relative;
            left: 40px;
        }
        #d3{
            width: 100px;
            height: 100px;
            background-color: aqua;
            position: relative;
            left: 200px;
            top: 100px;
        }
        #d4{
            width: 100px;
            height: 100px;
            background-color: blue;
        }
        #sub3{
            width: 100px;
            height: 100px;
            background-color: aquamarine;
            position: absolute;
            left: 500px;
            top: 300px;
        }
        #sub4{
            width: 160px;
            height: 200px;
            position: fixed;
            right: 4px;
            bottom: 4px;
        }
    </style>
</head>
<body>
    <div id="sub1">
        <div id="d1">张三</div>
        <div id="d2">李四</div>
    </div>
    <div id="sub2">
        <div id="d3">刘备</div>
        <div id="d4">张飞</div>
    </div>
    <div id="sub3">抚州</div>
    <div id="sub4"><img src="QQ图片20240619153617.jpg"></div>
</body>
</html>